﻿namespace QuickUIT.Input
{
    /// <summary>
    /// Provides methods for manipulating keyboard input. 
    /// </summary>
    public static class Keyboard
    {
        /// <summary>
        /// Types the specified text.
        /// </summary>
        /// <param name="text">The text to type.</param>
        public static void TypeText(string text)
        {
            WinInput.TypeText(text);
        }

        /// <summary>
        /// Performs a key down. 
        /// </summary>
        /// <param name="key">The key to hold down.</param>
        public static void KeyDown(VirtualKeyCode key)
        {
            WinInput.KeyDown(key);
        }

        /// <summary>
        /// Performs a key up.
        /// </summary>
        /// <param name="key">The key to lift up.</param>
        public static void KeyUp(VirtualKeyCode key)
        {
            WinInput.KeyUp(key);
        }

        /// <summary>
        /// Presses a key.
        /// </summary>
        /// <param name="key">The key to press.</param>
        public static void KeyPress(VirtualKeyCode key)
        {
            WinInput.KeyPress(key);
        }
    }
}
